home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / clipper / ks94an.zip / INDXFLDS.HDR < prev    next >
Text File  |  1994-04-25  |  1KB  |  45 lines

  1. /******************************************************************************
  2.                  The Klipper Library, for CA-Clipper 5.x
  3.         Copyright (c), 1994, Wallace Information Systems Engineering
  4.  
  5. FUNCTION:
  6.  
  7. _IndexFields() --> acFieldList
  8.  
  9. PARAMETERS:
  10.  
  11. None
  12.  
  13. SHORT:
  14.  
  15. Build an array containing field names referenced in the current index.
  16.  
  17. DESCRIPTION:
  18.  
  19. _IndexFields() parses out field names from the index key expression of
  20. the current index of the current database in the current workarea, and
  21. returns an array containing one field name per element.
  22.  
  23. _IndexFields() returns an empty array when an index expression contains
  24. no field names (however that came to be), or if there was no database open,
  25. or no index open, in the current area.
  26.  
  27. NOTE:
  28.  
  29.  
  30.  
  31. EXAMPLE:
  32.  
  33. USE Danger.DBF ALIAS Danger SHARED NEW
  34. INDEX ON Weapon+Anti_Tank+Mine TO Danger
  35.  
  36. acMineFields = _IndexFields()
  37.  
  38. Result: acMineFields[] contains:
  39.  
  40.     acMineFields[1] == 'WEAPON'
  41.     acMineFields[2] == 'ANTI_TANK'
  42.     acMineFields[3] == 'MINE'
  43.  
  44. ******************************************************************************/
  45.